package com.etc.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 
 * @TableName as_board
 */
public class AsBoard implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private String title;

    /**
     * 
     */
    private Integer typeid;

    /**
     * 
     */
    private Date creatime;

    /**
     * 
     */
    private String description;

    /**
     * 
     */
    private Integer userid;

    /**
     * 
     */
    private Integer collectionid;

    /**
     * 
     */
    private Integer state;

    private static final long serialVersionUID = 1L;

    private AsType type;

    private AsUser user;

    private AsCollection collection;

    private List<AsMatter> matters;

    public List<AsMatter> getMatters() {
        return matters;
    }

    public void setMatters(List<AsMatter> matters) {
        this.matters = matters;
    }

    public AsType getType() {
        return type;
    }

    public void setType(AsType type) {
        this.type = type;
    }

    public AsUser getUser() {
        return user;
    }

    public void setUser(AsUser user) {
        this.user = user;
    }

    public AsCollection getCollection() {
        return collection;
    }

    public void setCollection(AsCollection collection) {
        this.collection = collection;
    }

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getTitle() {
        return title;
    }

    /**
     * 
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 
     */
    public Integer getTypeid() {
        return typeid;
    }

    /**
     * 
     */
    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    /**
     * 
     */
    public Date getCreatime() {
        return creatime;
    }

    /**
     * 
     */
    public void setCreatime(Date createtime) {
        this.creatime = createtime;
    }

    /**
     * 
     */
    public String getDescription() {
        return description;
    }

    /**
     * 
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 
     */
    public Integer getUserid() {
        return userid;
    }

    /**
     * 
     */
    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    /**
     * 
     */
    public Integer getCollectionid() {
        return collectionid;
    }

    /**
     * 
     */
    public void setCollectionid(Integer collectionid) {
        this.collectionid = collectionid;
    }

    /**
     * 
     */
    public Integer getState() {
        return state;
    }

    /**
     * 
     */
    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AsBoard other = (AsBoard) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getTypeid() == null ? other.getTypeid() == null : this.getTypeid().equals(other.getTypeid()))
            && (this.getCreatime() == null ? other.getCreatime() == null : this.getCreatime().equals(other.getCreatime()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getCollectionid() == null ? other.getCollectionid() == null : this.getCollectionid().equals(other.getCollectionid()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getTypeid() == null) ? 0 : getTypeid().hashCode());
        result = prime * result + ((getCreatime() == null) ? 0 : getCreatime().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getCollectionid() == null) ? 0 : getCollectionid().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", title=").append(title);
        sb.append(", typeid=").append(typeid);
        sb.append(", createtime=").append(creatime);
        sb.append(", description=").append(description);
        sb.append(", userid=").append(userid);
        sb.append(", collectionid=").append(collectionid);
        sb.append(", state=").append(state);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}